package com.xingdata.jjxc.record;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.xingdata.jjxc.utils.Log;

public class RecordSQLiteOpenHelper extends SQLiteOpenHelper {
    private static final String TAG = RecordSQLiteOpenHelper.class.getSimpleName();
    private static String name = "temp.db";
    private static Integer version = 1;

    public RecordSQLiteOpenHelper(Context context) {
        super(context, name, null, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table records(id integer primary key autoincrement,name varchar(200))");
        db.execSQL("create table navirecords(id integer primary key autoincrement,name varchar(200),address varchar(200),lat varchar(48),lng varchar(48))");
        Log.d(TAG,"create records");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }


}